﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TeamCommunitySolution.Domain.DataLayer.Venues;

namespace TeamCommunitySolution.Repositories.Venues
{
    public interface VenueRepository
    {
        /// <summary>
        /// Saves the venue.
        /// </summary>
        /// <param name="venue">The venue.</param>
        void SaveVenue(Venue venue);

        /// <summary>
        /// Gets the venue by field.
        /// </summary>
        /// <param name="fieldName">Name of the field.</param>
        /// <param name="fieldValue">The field value.</param>
        /// <returns>An instance of a venue.</returns>
        Venue GetVenueByField(string fieldName, string fieldValue);

        void DeleteVenue(Venue venue);
    }
}
